package com.sdry.service.impl.zc;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.sdry.mapper.zc.ZcDisposeRejectsApprovalMapper;
import com.sdry.model.zc.ZcApproverResultEntity;
import com.sdry.model.zc.ZcDisposeRejectsEntity;
import com.sdry.model.zc.ZcProductTestEntity;
import com.sdry.model.zc.ZcQueryCriteria;
import com.sdry.service.zc.ZcDisposeRejectsApprovalService;

/**
 * 
 * @ClassName:    ZcDisposeRejectsApprovalServiceImpl   
 * @Description:  不合格处置审批
 * @Author:       zc   
 * @CreateDate:   2018年11月1日 下午2:43:24   
 * @Version:      v1.0
 */
@Service
public class ZcDisposeRejectsApprovalServiceImpl implements ZcDisposeRejectsApprovalService {

	@Resource
	private ZcDisposeRejectsApprovalMapper zcDisposeRejectsApprovalMapper;
	/**
	 * 查找不合格处置列表
	 * @param zcQueryCriteria
	 * @return
	 */
	@Override
	public List<ZcDisposeRejectsEntity> selectDisposeRejectsList4Me(ZcQueryCriteria zcQueryCriteria) {
		return zcDisposeRejectsApprovalMapper.selectDisposeRejectsList4Me(zcQueryCriteria);
	}
	/**
	 * 查找不合格处置列表数目
	 * @param zcQueryCriteria
	 * @return
	 */
	@Override
	public int countDisposeRejectsList4Me(ZcQueryCriteria zcQueryCriteria) {
		return zcDisposeRejectsApprovalMapper.countDisposeRejectsList4Me(zcQueryCriteria);
	}
	/**
	 * 提交审批
	 */
	@Override
	public int submitApprover(ZcApproverResultEntity zcApproverResultEntity) {
		return zcDisposeRejectsApprovalMapper.submitApprover(zcApproverResultEntity);
	}
	/**
	 * 查找不合格处置列表
	 * @param zcQueryCriteria
	 * @return
	 */
	@Override
	public List<ZcDisposeRejectsEntity> selectDisposeRejectsList2Android(String worker) {
		return zcDisposeRejectsApprovalMapper.selectDisposeRejectsList2Android(worker);
	}
	/**
	 * 查找我发起的审批
	 */
	@Override
	public List<ZcDisposeRejectsEntity> selectMyApprovelList(ZcQueryCriteria zcQueryCriteria) {
		return zcDisposeRejectsApprovalMapper.selectMyApprovelList(zcQueryCriteria);
	}
	/**
	 * 查找我发起的审批数目
	 */
	@Override
	public int countMyApprovelList(ZcQueryCriteria zcQueryCriteria) {
		return zcDisposeRejectsApprovalMapper.countMyApprovelList(zcQueryCriteria);
	}
	/**
	 * 查找我已审批的处置单
	 */
	@Override
	public List<ZcDisposeRejectsEntity> selectMyAlreadyApprovelList(ZcQueryCriteria zcQueryCriteria) {
		return zcDisposeRejectsApprovalMapper.selectMyAlreadyApprovelList(zcQueryCriteria);
	}
	/**
	 * 查找我已审批的处置单数目
	 */
	@Override
	public int countMyAlreadyApprovelList(ZcQueryCriteria zcQueryCriteria) {
		return zcDisposeRejectsApprovalMapper.countMyAlreadyApprovelList(zcQueryCriteria);
	}
	/**
	 * 查找抄送我的处置单
	 */
	@Override
	public List<ZcDisposeRejectsEntity> selectCopyMeApprovelList(ZcQueryCriteria zcQueryCriteria) {
		return zcDisposeRejectsApprovalMapper.selectCopyMeApprovelList(zcQueryCriteria);
	}
	/**
	 * 查找抄送我的处置单数目
	 */
	@Override
	public int countCopyMeApprovelList(ZcQueryCriteria zcQueryCriteria) {
		return zcDisposeRejectsApprovalMapper.countCopyMeApprovelList(zcQueryCriteria);
	}
	
	/**
	 * 安卓查询我发起的审批
	 * @param worker
	 * @return
	 */
	@Override
	public List<ZcDisposeRejectsEntity> selectMyApprovelList2Android(String worker) {
		return zcDisposeRejectsApprovalMapper.selectMyApprovelList2Android(worker);
	}
	/**
	 * 安卓查询我已完成的审批
	 * @param worker
	 * @return
	 */
	@Override
	public List<ZcDisposeRejectsEntity> selectMyAlreadyApprovelList2Android(String worker) {
		return zcDisposeRejectsApprovalMapper.selectMyAlreadyApprovelList2Android(worker);
	}
	/**
	 * 安卓查询抄送我的审批
	 * @param worker
	 * @return
	 */
	@Override
	public List<ZcDisposeRejectsEntity> selectCopyMeApprovelList2Android(String worker) {
		return zcDisposeRejectsApprovalMapper.selectCopyMeApprovelList2Android(worker);
	}
	/**
	 * 通过id查询处置单android
	 */
	@Override
	public ZcDisposeRejectsEntity selectZcDisposeRejectsEntity(String dId) {
		return zcDisposeRejectsApprovalMapper.selectZcDisposeRejectsEntity(dId);
	}
	/**
	 * 通过组件条码查询质检单信息
	 * @param code
	 * @return
	 */
	@Override
	public ZcProductTestEntity selectProductTestByCode(String code) {
		return zcDisposeRejectsApprovalMapper.selectProductTestByCode(code);
	}

}
